/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI.panels;

import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Memet
 */
public class EmptyOperationPanel extends javax.swing.JPanel {

    /**
     * Creates new form EmptyOperationPanel
     */
    public EmptyOperationPanel() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lblFontys = new javax.swing.JLabel();
        lblMecha = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jPictureBox1 = new Components.JPictureBox();

        lblFontys.setFont(new java.awt.Font("Trebuchet MS", 1, 11)); // NOI18N
        lblFontys.setForeground(new java.awt.Color(0, 0, 255));
        lblFontys.setText("jLabel1");
        lblFontys.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        lblFontys.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
        lblFontys.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblFontysMouseClicked(evt);
            }
        });

        lblMecha.setFont(new java.awt.Font("Trebuchet MS", 1, 11)); // NOI18N
        lblMecha.setForeground(new java.awt.Color(0, 0, 255));
        lblMecha.setText("jLabel1");
        lblMecha.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        lblMecha.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
        lblMecha.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblMechaMouseClicked(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Trebuchet MS", 1, 18)); // NOI18N
        jLabel1.setText("jLabel1");
        jLabel1.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        jLabel1.setVerticalTextPosition(javax.swing.SwingConstants.TOP);

        javax.swing.GroupLayout jPictureBox1Layout = new javax.swing.GroupLayout(jPictureBox1);
        jPictureBox1.setLayout(jPictureBox1Layout);
        jPictureBox1Layout.setHorizontalGroup(
            jPictureBox1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 506, Short.MAX_VALUE)
        );
        jPictureBox1Layout.setVerticalGroup(
            jPictureBox1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 105, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPictureBox1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(lblFontys, javax.swing.GroupLayout.DEFAULT_SIZE, 476, Short.MAX_VALUE)
                        .addGap(20, 20, 20))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(lblMecha, javax.swing.GroupLayout.DEFAULT_SIZE, 476, Short.MAX_VALUE)
                        .addGap(20, 20, 20))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 486, Short.MAX_VALUE)
                        .addContainerGap())))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblMecha)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblFontys)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPictureBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void lblFontysMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblFontysMouseClicked
        try {

            java.awt.Desktop.getDesktop().browse(new URI("http://fontys.edu/Default.aspx"));

        } catch (IOException ex) {
            Logger.getLogger(EmptyOperationPanel.class.getName()).log(Level.SEVERE, null, ex);
        } catch (URISyntaxException ex) {
            Logger.getLogger(EmptyOperationPanel.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_lblFontysMouseClicked

    private void lblMechaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblMechaMouseClicked
        try {

            java.awt.Desktop.getDesktop().browse(new URI("http://www.fontys.nl/mechatronica/english.306968.htm"));

        } catch (IOException ex) {
            Logger.getLogger(EmptyOperationPanel.class.getName()).log(Level.SEVERE, null, ex);
        } catch (URISyntaxException ex) {
            Logger.getLogger(EmptyOperationPanel.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_lblMechaMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private Components.JPictureBox jPictureBox1;
    private javax.swing.JLabel lblFontys;
    private javax.swing.JLabel lblMecha;
    // End of variables declaration//GEN-END:variables
}
